package org.hughie.springframework.beans.factory.support;

import org.hughie.springframework.beans.factory.config.BeanDefinition;

import java.lang.reflect.Constructor;

/**
 * bean实例化策略接口
 */
public interface InstantiationStrategy {

    /**
     * 实例化并返回对象
     */
    Object instantiate(BeanDefinition beanDefinition, String beanName, Constructor ctor, Object[] args);

}
